package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CarCustomerInvoiceMapper;
import com.ruoyi.system.domain.CarCustomerInvoice;
import com.ruoyi.system.service.ICarCustomerInvoiceService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-10
 */
@Service
public class CarCustomerInvoiceServiceImpl implements ICarCustomerInvoiceService 
{
    @Autowired
    private CarCustomerInvoiceMapper carCustomerInvoiceMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public CarCustomerInvoice selectCarCustomerInvoiceById(Long id)
    {
        return carCustomerInvoiceMapper.selectCarCustomerInvoiceById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param carCustomerInvoice 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<CarCustomerInvoice> selectCarCustomerInvoiceList(CarCustomerInvoice carCustomerInvoice)
    {
        return carCustomerInvoiceMapper.selectCarCustomerInvoiceList(carCustomerInvoice);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param carCustomerInvoice 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertCarCustomerInvoice(CarCustomerInvoice carCustomerInvoice)
    {
        carCustomerInvoice.setCreateTime(DateUtils.getNowDate());
        return carCustomerInvoiceMapper.insertCarCustomerInvoice(carCustomerInvoice);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param carCustomerInvoice 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateCarCustomerInvoice(CarCustomerInvoice carCustomerInvoice)
    {
        carCustomerInvoice.setUpdateTime(DateUtils.getNowDate());
        return carCustomerInvoiceMapper.updateCarCustomerInvoice(carCustomerInvoice);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteCarCustomerInvoiceByIds(Long[] ids)
    {
        return carCustomerInvoiceMapper.deleteCarCustomerInvoiceByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteCarCustomerInvoiceById(Long id)
    {
        return carCustomerInvoiceMapper.deleteCarCustomerInvoiceById(id);
    }
}
